From: Abderrahim Kitouni Date: Tue, 9 Feb 2021 09:17:29 +0000 (+0100) Subject: workspacesView: Fix off-by-one error X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~431 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9aae1df7a627067014300b6fa78d3c2d5a97b529;p=gnome-shell.git workspacesView: Fix off-by-one error This is basically 9f0e7632a6 ported over ed1170906b which was dropped this fix when copying things around. Part-of: --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 56b5e55ed..9ac7b6a65 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -167,7 +167,7 @@ class WorkspacesView extends WorkspacesViewBase { const rtl = this.text_direction === Clutter.TextDirection.RTL; const adj = this._scrollAdjustment; const currentWorkspace = vertical || !rtl - ? adj.value : adj.upper - adj.value; + ? adj.value : adj.upper - adj.value - 1; // Single fit mode implies centered too let x1 = 0;